package com.htzos.admin.system.service;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.htzos.admin.system.bean.SystemUserroleBase;
import com.htzos.admin.system.dao.SystemUserroleBaseMapper;
import com.htzos.common.tool.ExtQueryBean;
@Service
@Transactional(rollbackFor = Exception.class)
public class SystemUserroleBaseService {
    @Autowired
    SystemUserroleBaseMapper systemUserroleBaseMapper;
    @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
    public List<SystemUserroleBase> systemUserroleBaseList(SystemUserroleBase systemUserroleBase, ExtQueryBean extQuery){
       return systemUserroleBaseMapper.systemUserroleBaseList(systemUserroleBase, extQuery);
    }

    @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
    public Integer systemUserroleBaseTotal(SystemUserroleBase systemUserroleBase, ExtQueryBean extQuery){
       return systemUserroleBaseMapper.systemUserroleBaseTotal(systemUserroleBase, extQuery);
    }

    @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
    public int systemUserroleBaseUpdate(SystemUserroleBase systemUserroleBase){
       return systemUserroleBaseMapper.systemUserroleBaseUpdate(systemUserroleBase);
    }

    @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
    public int systemUserroleBaseInsert(SystemUserroleBase systemUserroleBase){
       return systemUserroleBaseMapper.systemUserroleBaseInsert(systemUserroleBase);
    }

    @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
    public int systemUserroleBaseDelete(SystemUserroleBase systemUserroleBase){
       return systemUserroleBaseMapper.systemUserroleBaseDelete(systemUserroleBase);
    }

    @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
    public SystemUserroleBase systemUserroleBaseGet(String id){
       return systemUserroleBaseMapper.systemUserroleBaseGet(id);
    }

    @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
    public String[] systemUserroleBaseGetUserRoles(Integer userId){
       return systemUserroleBaseMapper.systemUserroleBaseGetUserRoles(userId);
    }
}